<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="AgendaViewDlg" widgetVar="AgendaViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.ViewAgendaTitle}">
            <h:form id="AgendaViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{agendaController.selected != null}">
                        <h:outputText value="#{bundle.ViewAgendaLabel_telefonocasa}"/>
                        <h:outputText value="#{agendaController.selected.telefonocasa}" 
                                      title="#{bundle.ViewAgendaTitle_telefonocasa}"/>
                        
                        <h:outputText value="#{bundle.ViewAgendaLabel_telefonotrabajo}"/>
                        <h:outputText value="#{agendaController.selected.telefonotrabajo}" 
                                      title="#{bundle.ViewAgendaTitle_telefonotrabajo}"/>
                        
                        <h:outputText value="#{bundle.ViewAgendaLabel_direccion}"/>
                        <p:inputTextarea value="#{agendaController.selected.direccion}"
                                      title="#{bundle.ViewAgendaTitle_direccion}"
                                      rows="2" cols="22" autoResize="false" disabled="true"/>
                        
                        <h:outputText value="#{bundle.ViewAgendaLabel_mail}"/>
                        <h:outputText value="#{agendaController.selected.mail}" 
                                      title="#{bundle.ViewAgendaTitle_mail}"/>
                        
                        <h:outputText value="#{bundle.ViewPacientesLabel_cedula}"/>
                        <h:outputText value="#{agendaController.selected.idpaciente.cedula}" 
                                      title="#{bundle.ViewAgendaTitle_idpaciente}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="AgendaViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
